  <div id="content-container" class="container">      
     <div class="row row-3-9">        
        <div class="col-md-9">	
          <div class="panel panel-default panel-col">
	        <div class="panel-heading">添加课时《{$cs_data['cs_name']}》</div>
	          <div class="panel-body">
                 <div id="myTabContent" class="tab-content">
                    <div class="tab-pane fade in active" id="vodeo">
                       <form id="user-profile-form" class="form-horizontal js-ajax-form" method="post" action="{:U('Teacher/Center/adddocsection_post')}">
					      <div class="form-group">
						     <label class="col-md-2 control-label">课时标题</label>
						        <div class="col-md-7 controls">
						           <input type="hidden" name="cs_id" value="{$cs_id}">
                                   <input type="hidden" name="type_id" value="0">
                                   <input type="hidden" name="section_type" value="2">
							       <input type="text" name="sc_name" id="sc_name" value="" class="form-control">
						        </div>
					      </div>
					      <div class="form-group">
						     <label class="col-md-2 control-label">请选择章</label>
						     <div class="col-md-6 controls">
                                <select class="form-control" name="zhang_id">
            	                 <option value='0' >无需选择</option>
            	                   <foreach name="zhang_list" item="vo">
          	                          <option  value={$vo.id} >{$vo.sc_name}</option>
          	                       </foreach>  
                                </select>
                             </div>
                             <div class="col-md-2 controls">
                                   <button class="btn btn-dufault" href="{:u('Teacher/Center/addzhang',array('cs_id'=>$cs_id))}" data-toggle="modal" data-target="#myModal">添加 </button>
                             </div>
					      </div>
					      <div class="form-group">
					           <label class="col-md-2 control-label">是否免费</label>
						       <div class="checkbox col-md-2 controls" style="margin-bottom:10px;">
                                  <label> <input type="checkbox" name="is_free" value="1" ></label>
                               </div>
					      </div>
					      <div class="form-group">
							<label class="col-md-2 control-label">课程内容</label>
							<div class="col-md-7 controls">
							  <td><script id="content" type="text/plain"  name="doccontent" style="width:100%;"></script></td>
							</div>
						 </div>
					      
					      
						  <div class="row">
					  	    <div class="col-md-7 col-md-offset-2">
							   <button id="profile-save-btn"  type="submit" class="btn btn-primary js-ajax-submit">添加 </button>
						   </div>
					    </div>
			           </form>
                    </div>
                 </div>	   
		      </div>
	        </div>
         </div>
     </div>
   </div>
 
<tc_include file="Public:scripts" /> 
<script type="text/javascript" src="__PUBLIC__/js/ueditor/ueditor.config.js"></script>
<script type="text/javascript" src="__PUBLIC__/js/ueditor/ueditor.all.js"></script>
<script type="text/javascript"> 
    editorcontent = new baidu.editor.ui.Editor({initialFrameHeight:300});
	editorcontent.render( 'content' );
	try{editorcontent.sync();}catch(err){};
</script> 
<script>
function radioSwitch(){
	var val = $('#video input[name="radio"]:checked ').val();
	var yun = document.getElementById('yun');
	var youku = document.getElementById('youku');  
	if(val==1){
		yun.className = 'col-md-7 controls col-md-offset-2';
		youku.className = 'col-md-7 controls col-md-offset-2 hidden';
		document.getElementById("video_type").value='1';
		}else{
			yun.className = 'col-md-7 controls col-md-offset-2  hidden';
			youku.className = 'col-md-7 controls col-md-offset-2';
			document.getElementById("video_type").value='2';
			}
	 
}
</script>  
<tc_include file="Public:footer" />